<?php
/*------------------------------------------------------------------------
# com_vportfolio - Vportfolio component
# ------------------------------------------------------------------------
# author    Vsmart Extensions
# copyright Copyright (C) 2010 www.vsmart-extensions.com. All Rights Reserved.
# @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
# Websites: http://www.vsmart-extensions.com
# Technical Support:  Forum - http://www.vsmart-extensions.com
-------------------------------------------------------------------------*/
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

$cparams = JComponentHelper::getParams ('com_media');
$url = JURI::base();
?>

<div class="componentheading<?php echo $this->params->get( 'pageclass_sfx' ); ?>">
	<?php if ($this->category->name) :
	//	echo JText::_( $this->config->cf_heading ).' - ';
	echo "<h3>".$this->escape($this->category->name)."</h3>";
	echo "<br />";
	else :
	//	echo JText::_( $this->config->cf_heading );
	endif; 
	?>
	
</div>

<div class="contentpane<?php echo $this->params->get( 'pageclass_sfx' ); ?>">
<?php if ($this->category->description && $this->config->cf_category_des) : ?>
	<div class="contentdescription categoryDes">
		<?php echo $this->category->description; ?>
	</div>
<?php endif; ?>
<script language="javascript" type="text/javascript">
	function tableOrdering( order, dir, task ) {
	var form = document.adminForm;
	form.filter_order.value 	= order;
	form.filter_order_Dir.value	= dir;
	document.adminForm.submit( task );
}
</script>
<form action="<?php echo $this->action; ?>" method="post" name="adminForm">
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
	<thead class="tablehead">	
		<tr height="40">
			<td align="right" class="sectiontablefooter<?php echo $this->params->get( 'pageclass_sfx' ); ?>">
				<?php echo $this->pagination->getPagesLinks(); ?>			
			</td>
		</tr>	
	</thead>	
	<tbody>
		<?php echo $this->loadTemplate('items'); ?>
	</tbody>
</table>

<input type="hidden" name="option" value="com_vportfolio" />
<input type="hidden" name="catid" value="<?php echo $this->category->id;?>" />
<input type="hidden" name="filter_order" value="<?php echo $this->lists['order']; ?>" />
<input type="hidden" name="filter_order_Dir" value="" />
</form>
</div>
